package com.rainbowelephant.fun.fitness;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

public class ToolsActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tools);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_tools, menu);
        return true;
    }

    
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                NavUtils.navigateUpFromSameTask(this);
                return true;
        }
        return super.onOptionsItemSelected(item);
    }
    
	public void stopWatch(View view) {
		Intent intent = new Intent(this, StopWatchActivity.class);
    	startActivity(intent);
	}
	
	public void pedometer(View view) {
		Intent intent = new Intent(this, PedometerActivity.class);
    	startActivity(intent);
	}
	
	public void bmiCalculator(View view) {
		Intent intent = new Intent(this, BMIActivity.class);
    	startActivity(intent);
	}
	
	public void checklist(View view) {
		Intent intent = new Intent (this, ChecklistActivity.class);
		startActivity(intent);
	}
	
	public void pathTracer(View view) {
		Intent intent = new Intent (this, GPSActivity.class);
		startActivity(intent);
	}

}
